package cn.mapper;

import org.apache.ibatis.jdbc.SQL;

public class OfficeProvider {

    public String selectPageByOfficeName(String officeName){
        return new SQL(){{
            SELECT(" * ");
            FROM(" sys_office");
            WHERE(" del_flag=0 ");
            if (!officeName.equals("")){
                WHERE(" name like concat('%',#{officeName},'%')");
            }
        }}.toString();
    }
}
